$import("com.joypard.workflow.process.ProcessField");

K.defDI("com.joypard.workflow.process.ProcessDI", {
	statics : {
		urls : {
			getProcesses : $path + "/workflow/process/getProcesses.do",
			getProcessDetails : $path
					+ "/workflow/process/getProcessDetails.do"
		},
		createProcessStore : function() {
			var options = {
				url : this.urls.getProcesses,
				fields : ProcessField.fields,
				root : "data",
				paramNames : { // 设置传递的分页参数名
					start : 'start',
					limit : 'size'
				},
				totalProperty : "total"
			};
			return new K.Ext.data.JsonStore(options);
		}
	}
});
